const { ccclass, property } = cc._decorator;
@ccclass
export default class RenderingsControl extends cc.Component {
    protected onLoad(): void {
        this.node.active = false;
        let self = this;
        cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN, function (event) {
            if (event.keyCode === cc.macro.KEY.tab) {
                self.node.active = !self.node.active;
            }
        }, this);
    }
}
